//
//  TKYAddSafetyCell.m
//  StationHouseHelper
//
//  Created by apple on 2018/6/28.
//  Copyright © 2018年 铁科院. All rights reserved.
//

#import "TKYAddSafetyCell.h"
@interface TKYAddSafetyCell()<UITextFieldDelegate>



@end
@implementation TKYAddSafetyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.contentTF.delegate = self;
    [self setSelectionStyle:UITableViewCellSelectionStyleNone];

    // Initialization code
}


- (IBAction)selectedButtonAction:(UIButton *)sender {
    if (self.selectedCellBlock) {
        self.selectedCellBlock(sender);
    }
}

- (void)textFieldDidEndEditing:(UITextField *)textField{
    if (self.contentTFBlock) {
        self.contentTFBlock(textField.text);
    }
}

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
    if (self.contentTFBlock) {
        self.contentTFBlock(textField.text);
    }
    return YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
